package com.RedRiver.hospitalsystem.record_service.client;

import com.RedRiver.hospitalsystem.record_service.client.result.GetpapersResult;
import com.RedRiver.hospitalsystem.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "PapersClient",name="record-service",path="recordService/papers")
public interface PapersClient {

    @GetMapping("/createPaper")
    public Result<?> createPaper(@RequestParam("cardType")String cardType);

    @GetMapping("/downPaper")
    Result<?> downPaper(@RequestParam("id")Integer id);

    @GetMapping("/paperList")
    Result<List<GetpapersResult>> paperList();
}
